/**
 * 报表设计公司(2011)
 */
package com.reportgear.designer.config;

import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.spi.LoggingEvent;

/**
 * Gui输出
 * 
 * @version 1.0 2011-3-14
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ANNCSR 2.0
 * 
 */
public class GuiAppender extends AppenderSkeleton {

	@Override
	protected void append(LoggingEvent event) {
		System.out.print(this.layout.format(event));
	}

	@Override
	public void close() {
		//
	}

	@Override
	public boolean requiresLayout() {
		return true;
	}

}